import request from '@/utils/request';

/**
 * 用户登录
 * @param data 
 * @returns 
 */
export const login = async (data: any) => {
    return await request({
        url: '/zjh/api/userlogin',
        method: 'post',
        data: data,
    })
}

/**
 * 获取当前登录用户信息
 * @param data 
 * @returns 
 */
export const getUserInfo = async () => {
    return  await request({
        url: '/zjh/api/userlogin/info',
        method: 'get'
    });
}
